//
// Created by fanghr on 17-12-30.
//

#ifndef PROJECT_RW_LOCK_H
#define PROJECT_RW_LOCK_H

#include "../include.h"

class rw_lock : public boost::noncopyable{
private:
    pthread_rwlock_t m_Mutex;
public:
    rw_lock();
    ~rw_lock();
    void lock();
    void unlock();
    void lock_shared();
    void unlock_shared();
};



#endif //PROJECT_RW_LOCK_H
